<?php
  class SlotBase extends Singleton {

    private $vars = array();

    public static function get($var, $default = null){
      $me = static::getInstance();

      if(isset($me->vars[$var]))
      {
        return $me->vars[$var];
      } else {
        // TODO:buscar en la base de datos
        return $default;
      }

    }

    public static function set($var, $val){
      $me = static::getInstance();
      $me->vars[$var] = $val;
    }
    
  }